<?php
class Personaladdress_Data_Insertuserdata implements Personaladdress_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null) {
        $variables['query'] = "INSERT INTO personal_data(username, telephone_number, street_name, house_number, apartament_number, postal_code, city, region, vat_number) VALUES('".$variables['post']['username']."','".$variables['post']['telephone_number']."','".$variables['post']['street_name']."','".$variables['post']['house_number']."','".$variables['post']['apartament_number']."','".$variables['post']['postal_code']."','".$variables['post']['city']."','".$variables['post']['region']."','".$variables['post']['vat_number']."');";
        //echo $variables['query'];
        //die();
        return $this->core_controller_dataoperation->main($variables);
    }
}
